package dreamtime.dreamnews.news;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class LinkBaseInfo {
	public static String getSmallClassName(Connection conn,PreparedStatement pstmt,ResultSet rs,int smallclassid) throws SQLException{
		String nameString="";
		pstmt=conn.prepareStatement("select smallclassname from smallclass where smallclassid=?");
		pstmt.setInt(1,smallclassid);
		rs=pstmt.executeQuery();
		if(rs.next())nameString=rs.getString("smallclassname");
		return nameString;
	}
}
